import redis

redis_server = redis.Redis(

    host="192.168.8.15", port=6379
)

with redis_server.pipeline(transaction=True) as pipeline:
    for i in range(100):
        key = "k_" + str(i)
        value = "v_" + str(i)
        pipeline.sadd(key,  value)

    pipeline.execute()


print(redis_server.get("key_9"))
